package com.cesgroup.zw.spring.boot.library.echarts.gauge.simple;

import com.cesgroup.zw.spring.boot.charts.model.IChartsParam;
import com.cesgroup.zw.spring.boot.charts.model.IComponent;
import com.cesgroup.zw.spring.boot.echarts.model.rader.RaderData;
import lombok.Builder;
import lombok.Data;

/**
 * @author ytj
 * @date 2019/7/2 13:28
 */
@Data
@SuppressWarnings("serial")
@Builder
public class SimpleGaugeParam implements IChartsParam<SimpleGaugeSeries,RaderData[]> {
    private RaderData[] dataset;

    private String name;

    private String title;
    @Override
    public IComponent[] getSeries() {
        return new SimpleGaugeSeries[]{new SimpleGaugeSeries(this)};
    }
}
